<?php

namespace Modules\Order\Entities;

use Modules\Order\Entities\Order;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Delivery extends Model
{
    use SoftDeletes;

    protected $fillable = ['order_id', 'type', 'name', 'tel', 'latitude', 'longitude', 'community', 'address_name', 'details'];

    protected $dates = ['send_time', 'complete_at'];

    public function order()
    {
        return $this->belongsTo(Order::class);
    }
}
